package com.levtech.moviemanager.contact;

public class Contact
{
	private String firstName;
	private String lastName;
	private String phone;
	
	public Contact(){}
	
	public Contact(String first, String last, String phone)
	{
		this.firstName = first;
		this.lastName = last;
		this.phone = phone;
	}

	public String getFirstName()
	{
		if(firstName.equals(""))
			return null;
		return firstName;
	}

	public String getLastName()
	{
		if(lastName.equals(""))
			return null;
		return lastName;
	}

	public String getPhone()
	{
		if(phone.equals(""))
			return null;
		return phone;
	}

	public void setFirstName(String firstName)
	{
		this.firstName = firstName;
	}

	public void setLastName(String lastName)
	{
		this.lastName = lastName;
	}

	public void setPhone(String phone)
	{
		this.phone = phone;
	}
	
	@Override
	public String toString()
	{
		return "Phone #: " + this.phone;
	}

}
